package com.leyou.item.api;

import com.leyou.item.pojo.Brand;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@RequestMapping("brand")
public interface BrandApi {

    //通过ids查询brands
    @GetMapping("list")
    public List<Brand> queryBrandsByIds(@RequestParam("ids") List<Long> ids);

    //通过id查询brand
    @GetMapping("/{id}")
    public Brand queryBrandById(@PathVariable("id")Long id);

}
